import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;



public class ThresdPool {
    public static void main(String[] args) {

        ExecutorService service = Executors.newFixedThreadPool(10);

        service.execute(new NumberThread());
//        service.submit();
        service.shutdown();
    }

}


class NumberThread implements Runnable{

    public void run(){
        for (int i = 0; i <=100; i++ ){
            if(i%2 == 0){
                System.out.println(Thread.currentThread().getName() +":"+ i);
            }
        }
    }

}